﻿using GameView.Services.Enums;
using System.ComponentModel.DataAnnotations;

namespace GameView.Services.Dtos.Project
{
    public class GameInfoEntity
    {
        public int Id { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public int CreatedUserId { get; set; }

        /// <summary>
        /// 修改人ID
        /// </summary>
        public int UpdatedUserId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string Remark { get; set; }

        /// <summary>
        /// 游戏状态，在线/离线
        /// </summary>
        public GameStatus Status { get; set; } = GameStatus.OneLine;

        /// <summary>
        /// 项目ID
        /// </summary>
        [Required]
        public int PId { get; set; }

        /// <summary>
        /// 游戏名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// 离线时间
        /// </summary>
        public string OfflineTime { get; set; } = null;
    }
}